import Vue from 'vue'
import App from './App'
import store from './store'
import globaljs from "@/common/globalmethods.js";
import uView from './static/style/uview-ui';
Vue.use(uView);



// Vue.use(globaljs);


Vue.config.productionTip = false

App.mpType = 'app'

Vue.prototype.$store = store

const app = new Vue({
	store,
    ...App
})

// 这里需要写在最后，是为了等Vue创建对象完成，引入"app"对象(也即页面的"this"实例)
// Vue.use(globaljs)
// 拦截器
import httpInterceptor from '@/common/http.interceptor.js'
Vue.use(httpInterceptor, app)
// 集中管理api
import httpApi from '@/common/http.api.js'
Vue.use(httpApi, app)


Vue.prototype.GNAV = globaljs;

app.$mount()
